package com.ctshk.rpc.custom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ctshk.rpc.custom.base.CustomBaseMapper;
import com.ctshk.rpc.custom.entity.CustomizedTripScheduleInfoChangeRule;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * <p>
 * 旅客资料收费规则 Mapper 接口
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-20
 */
public interface CustomizedTripScheduleInfoChangeRuleMapper extends CustomBaseMapper<CustomizedTripScheduleInfoChangeRule> {

    /**
     *  清空团期资料收费规则
     *
     * @param scheduleId
     * @param modifiedId
     * @return
     */
    @Update("UPDATE t_customized_trip_schedule_info_change_rule \n" +
            "SET is_deleted = 1,modified_id = #{modified_id} WHERE schedule_id = #{schedule_id} AND is_deleted = 0")
    Integer clearBySchedule(@Param("schedule_id") Long scheduleId,@Param("modified_id") Long modifiedId);
}
